package com.tony.guice.Common;

import com.google.inject.AbstractModule;
import com.google.inject.matcher.Matchers;
import jdk.nashorn.internal.runtime.regexp.joni.Matcher;
import org.aopalliance.intercept.MethodInterceptor;

/**
 * @version V1.0  </br>
 * @ClassName NotOnWeekendsModule </br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 2/28/2019 6:34 PM</br>
 */
public class NotOnWeekendsModule  extends AbstractModule {
    @Override
    protected void configure() {
        bindInterceptor(Matchers.any(), Matchers.annotatedWith(NotOnWeekends.class), new WeekendBlocker());
    }
}
